import React from 'react';
import { connect } from 'dva';
import styles from './IndexPage.css';
import { routerRedux } from 'dva/router';

function IndexPage({dispatch}) {
  return (
    <div  className={styles.normal} onClick={() => dispatch(routerRedux.push('/product',{}))}>
      点击进入商品页
      <div className={styles.welcome} />
    </div>
  );
}

IndexPage.propTypes = {
};

export default connect()(IndexPage);
